package org.seefly.iprint.converter;

import java.math.BigDecimal;

import org.springframework.core.convert.converter.Converter;


public class String2BigDecimal implements Converter<String, BigDecimal> {

    @Override
    public BigDecimal convert(String price) {
        if(price == null || price.trim() == "") {
            return null;
        }
        return new BigDecimal(price);
    }
}
